<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="mobile" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Driver_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-driver_id"  data-source="user/user/index" data-field="mobile" class="form-control selectpage" name="row[driver_id]" type="text" value=""><span>如选择司机,请选择<span style="color: red">已接单</span></span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="-1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appointment_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appointment_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  name="row[appointment_time]" type="text">


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_city')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-start_city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[start_city]" type="text"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start" data-rule="required" class="form-control"  name="row[start]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Map')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span id ="start" class="btn btn-success" data-toggle="addresspicker">选择地图出发详细位置</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_address"  data-rule="required" class="form-control" name="row[start_address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_latitude"  data-rule="required" class="form-control" name="row[start_latitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_longitude"  data-rule="required" class="form-control" name="row[start_longitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_city')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-end_city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[end_city]" type="text"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end" data-rule="required" class="form-control" name="row[end]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Map')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span id="end" class="btn btn-success" data-toggle="addresspicker">选择地图目的地地址</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_address"  data-rule="required" class="form-control" name="row[end_address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_latitude"  data-rule="required" class="form-control" name="row[end_latitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_longitude"  data-rule="required" class="form-control" name="row[end_longitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Distance')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-distance" class="form-control" step="0.01" name="row[distance]" type="number" value="0.00">
        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Duration')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-duration" class="form-control" step="0.01" name="row[duration]" type="number" value="0.00">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Estimated_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-estimated_price" class="form-control" step="0.01" name="row[estimated_price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
                <label for="row[status1]"><input id="row[status1]" name="row[status]" class="see_lower" type="radio" value="0" {if condition="($row.status ?? 0) neq 1" }checked{/if} /> 呼叫中</label>
                <label for="row[status2]"><input id="row[status2]" name="row[status]" class="see_lower" type="radio" value="1" {if condition="($row.status ?? 0) eq 1" }checked{/if} /> 已接单</label>
            </div>

        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Comment')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
                        <!---->
            <!--<select  id="c-comment" data-rule="required" class="form-control selectpicker" name="row[comment]">-->
                <!--{foreach name="commentList" item="vo"}-->
                    <!--<option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>-->
                <!--{/foreach}-->
            <!--</select>-->

        <!--</div>-->
    <!--</div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
